Skip to content

Convert ReactScrollView and ReactNestedScrollView to Kotlin#57044

Open
cortinico wants to merge 1 commit into
facebook:mainfrom
cortinico:export-D107236882
Open

Convert ReactScrollView and ReactNestedScrollView to Kotlin#57044
cortinico wants to merge 1 commit into
facebook:mainfrom
cortinico:export-D107236882

Conversation

@cortinico
Copy link
Copy Markdown
Contributor

Summary:
Convert ReactScrollView.java to ReactScrollView.kt and update the generate-nested-scroll-view.js script to generate ReactNestedScrollView.kt from the Kotlin source.

Key changes:

  • ReactScrollView.java replaced by idiomatic ReactScrollView.kt
  • ReactNestedScrollView.java replaced by generated ReactNestedScrollView.kt
  • Generation script updated for Kotlin source/output file paths and transformations
  • BUCK file updated to reference .kt files in the verification genrule
  • ReactScrollViewManager.kt updated to use Kotlin property access syntax for scrollEnabled, stateWrapper, and fadingEdgeLengthStart/End
  • Public API surface preserved: only additive synthetic constructor from JvmOverloads

Changelog:
[Android][Changed] - Convert ReactScrollView and ReactNestedScrollView from Java to Kotlin

Differential Revision: D107236882

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 2, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Jun 2, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Jun 2, 2026

@cortinico has exported this pull request. If you are a Meta employee, you can view the originating Diff in D107236882.

@cortinico cortinico force-pushed the export-D107236882 branch from 8bce933 to b2bdcbc Compare June 2, 2026 16:31
Summary:
Convert `ReactScrollView.java` to `ReactScrollView.kt` and update the `generate-nested-scroll-view.js` script to generate `ReactNestedScrollView.kt` from the Kotlin source.

Key changes:
- `ReactScrollView.java` replaced by idiomatic `ReactScrollView.kt`
- `ReactNestedScrollView.java` replaced by generated `ReactNestedScrollView.kt`
- Generation script updated for Kotlin source/output file paths and transformations
- BUCK file updated to reference `.kt` files in the verification genrule
- `ReactScrollViewManager.kt` updated to use Kotlin property access syntax for `scrollEnabled`, `stateWrapper`, and `fadingEdgeLengthStart/End`
- Public API surface preserved: only additive `synthetic` constructor from `JvmOverloads`

Changelog:
[Android][Changed] - Convert `ReactScrollView` and `ReactNestedScrollView` from Java to Kotlin

Differential Revision: D107236882
@cortinico cortinico force-pushed the export-D107236882 branch from b2bdcbc to 3f84275 Compare June 2, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant